﻿using Sys.Core.House;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Login : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string returnurl = Request.QueryString["ReturnUrl"];

            if (!string.IsNullOrEmpty(returnurl))
            {
                if (returnurl.Contains("."))
                {
                    Response.Clear();
                    Response.Write("<script type='text/javascript'>location.href='../admin/index.aspx';</script>");
                    Response.End();
                }
            }

            FormsAuthentication.SignOut();
        }
    }
}